//
//  ZZCarDebtRankCell.m
//  新项目
//
//  Created by liGordon on 17/3/13.
//  Copyright © 2017年 刘耀宗. All rights reserved.
//

#import "ZZCarDebtRankCell.h"


@interface ZZCarDebtRankCell ()
@property (weak, nonatomic) IBOutlet UILabel *recommendLabel;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *carPlate;
@property (weak, nonatomic) IBOutlet UILabel *carType;
@end

@implementation ZZCarDebtRankCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setDic:(NSDictionary *)dic
{
    _dic = dic;
    self.recommendLabel.text = [NSString stringWithFormat:@"%@",dic[@"CarOwnerTel"]];
    [self.recommendLabel sizeToFit];
    self.nameLabel.text = [NSString stringWithFormat:@"%@",dic[@"CarOwner"]];
    [self.nameLabel sizeToFit];
    
          self.carPlate.text = [NSString stringWithFormat:@"%@",dic[@"PlateNumber"]];
    [self.carPlate sizeToFit];
    self.carType.text = [NSString stringWithFormat:@"当前欠款:¥%@",dic[@"Arrears"]];
                                
}


- (IBAction)moreBtnClick:(UIButton *)sender {
    if ([self.delegate respondsToSelector:@selector(clickDetail)]) {
        [self.delegate clickDetail];
    }
    
}
@end
